<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app{
            width: 300px;
            height:320px;
            background-color: rgb(248, 158, 85);
            text-align: center;
            padding-top: 10px;
        }
        .item_icon{
            width: 240px;
            height:100px;
            background-color:bisque;
            line-height: 30px; 
            margin-left: 30px;
            color: rgb(255, 0, 0);
        }
		.item{
			width: 300px;
			height: 40px;
			line-height: 40px;
			text-align: center;
		}
    </style>
</head>
<body>
   <div id="app">
       <h2>个人信息</h2>
       <div class="item">
       姓名:<input type="text" :value="person.name" >
    </div>
    <div class="item"> 
        年龄:<input type="text" :value="person.age">
    </div>
    <div class="item"> 
        身高:<input type="text" v-model="person.height" :value="person.height">
    </div>
       <div v-if="person.height>=180" class="item_icon">
           兄弟呀，再有八块腹肌会更好！
       </div>
       <div v-else-if="person.height>=170" class="item_icon">
           该用功学习了，不然没对象啦！
       </div>
       <div v-else-if="person.height>=160" class="item_icon">
         兄弟啊，咱身高一般，但智商高啊！
    </div>
    <div v-else class="item_icon">
        别理它们，浓缩的都是精华！
    </div>
   </div>

</body>
<script src="https://unpkg.com/vue@next"></script>
<script>
    const Counter={
        data(){
          return{
             person:{name:'小明',age:20,height:197}
           }
        } 
     }
     Vue.createApp(Counter).mount('#app');
</script>


</html>